package com.fafi.spring.test.notification;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

@Component
public class SelfEventPublisher {
	@Autowired
	private ApplicationEventPublisher applicationEventPublisher;
	public void publish(String message) {
		SelfEvent event = new SelfEvent(this, message);
		applicationEventPublisher.publishEvent(event);
	}

}
